package com.maopuyu.repositories;

import com.maopuyu.entity.Video;
import org.springframework.data.repository.CrudRepository;

import java.util.List;


public interface VideoRepository extends CrudRepository<Video, Integer> {
    Video findVideoById(Integer id);

    List<Video> findAllBySeriesIdOrderByTitleAsc(Integer seriesId);
}
